#!/usr/bin/python
# -*- coding:utf-8 -*-
# @author  : micah
# @time    :  
# @function: 
# @version :


path = './读写文件测试.txt'

file_obj = open(path, 'w', encoding='utf-8')

# 如果想要一次性写入多行数据
str_list = ['anna\n', 'Charlie\n', 'Bili\n']

file_obj.writelines(str_list)
